From 9e3de2fe7f4240bf744cf2e8f27d3d743f417e9c Mon Sep 17 00:00:00 2001 From: Cody Russell Date: Mon, 13 Oct 2008 15:15:23 +0000 Subject: [PATCH] Fix option parsing so that -a and --action work correctly. 2008-10-13 Cody Russell * test/testfilechooser.c: Fix option parsing so that -a and --action work correctly. svn path=/trunk/; revision=21645 --- ChangeLog | 5 +++++ tests/testfilechooser.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e6c54662e8..334c2b6760 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-10-13 Cody Russell + + * test/testfilechooser.c: Fix option parsing so that -a and + --action work correctly. + 2008-10-13 Christian Persch Bug 555386 – format not a string literal and no format arguments diff --git a/tests/testfilechooser.c b/tests/testfilechooser.c index 57b27f8cbe..7c008055ee 100644 --- a/tests/testfilechooser.c +++ b/tests/testfilechooser.c @@ -491,7 +491,7 @@ main (int argc, char **argv) char *backend = NULL; GError *error = NULL; GOptionEntry options[] = { - { "action", 'a', 0, G_OPTION_ARG_STRING, &action, "Filechooser action", "ACTION" }, + { "action", 'a', 0, G_OPTION_ARG_STRING, &action_arg, "Filechooser action", "ACTION" }, { "backend", 'b', 0, G_OPTION_ARG_STRING, &backend, "Filechooser backend (default: gtk+)", "BACKEND" }, { "multiple", 'm', 0, G_OPTION_ARG_NONE, &multiple, "Select-multiple", NULL }, { "right-to-left", 'r', 0, G_OPTION_ARG_NONE, &force_rtl, "Force right-to-left layout.", NULL }, -- 2.30.2